<template>
  <div class="home">
    <h1>Home Page</h1>
    <ul>
      <li v-for="(item, index) in list" :key="index">{{ item.imageName }}</li>
    </ul>
  </div>
</template>

<script>
  import axios from 'axios'

  export default {
    metaInfo: {
      title: '首页', // set a title
      meta: [{          // set meta 
        name: '关键字',
        content: '描述'
      }]
    },
    data() {
      return {
        list: []
      }
    },
    async created() {
      let res = await axios.get('http://testapi.xuexiluxian.cn/api/slider/getSliders')
      this.list = res.data.data.list
    }
  }
</script>
